/**
* @file 列表组件
* @author wangcf
* @date 2017-01-07
*/
<template>
  <div class="list_customer sideline_up sideline_down" v-for="list in data"
       @tap="toDetail(list.id)">
    <div class="content mui-icon mui-push-right">
      <p class="title">{{list.projectName}}</p>
      <p v-show="listdynamic.listone">{{listdynamic.listone}}:&nbsp;{{list.byEnterprise}}</p>
      <span v-text="list.stageName" class="listStatus"></span>
    </div>
    <div class="label sideline_up">
      <span v-show="listdynamic.name" class="crm-{{listdynamic.iconOne}}">{{listdynamic.name}}:&nbsp;{{list.projectManagerName}}</span>
      <span class="crm-{{listdynamic.iconTwo}}">{{listdynamic.time}}:&nbsp;{{list.createdOn}}</span>
    </div>
  </div>
  <div style="height: 10px;"></div>
</template>
<style lang="less" rel="stylesheet/less">
  @import 'crmListCss.css';
</style>
<script>
  export default{
    props: {
      data: {},
      listdynamic: {}
    },
    methods: {
      toDetail: function (id) {
        this.$dispatch('toDetail', id);
      }
    },
    ready: function () {
      mui('.mui-scroll-wrapper').scroll();
    }
  }
</script>
